def demo1():
    num = 10  # num就是局部变量
    print("%d" % num)

def demo2():
    print
    
demo1()